package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_APPENDIX")
@ApiModel(value = "附件表")
public class Appendix extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="原文件名")
    @TableField(value ="SOURCEFILENAME")
    @JsonProperty(value = "sourceFileName")
    private String sourceFileName;

    @ApiModelProperty(value="当前文件名")
    @TableField(value ="CURRENTFILENAME")
    @JsonProperty(value = "currentFileName")
    private String currentFileName;

    @ApiModelProperty(value="文件路径")
    @TableField(value ="FILEURL")
    @JsonProperty(value = "fileUrl")
    private String fileUrl;

    @ApiModelProperty(value="关联id")
    @TableField(value ="RELEVANCEID")
    @JsonProperty(value = "relevanceId")
    private String relevanceId;

    @ApiModelProperty(value="来源类型：1.接口获取；0.页面上传")
    @TableField(value ="SOURCE_TYPE")
    @JsonProperty(value = "sourceType")
    private String sourceType;
}
